% coding: utf-8

\newcommand{\ToDo}{\color{red} {\Huge COMPLETAR} \normalcolor}
\newcommand{\ReView}{\color{red} {\Huge REVISAR!! } \normalcolor}
\newcommand{\Ask}{\color{red} {\Huge CONSULTAR!! } \normalcolor}

\newcommand{\paqueteEthernet}[4]{
	$\mid$ #1 $\mid$ #2 $\mid$ #3 $\mid$ #4 $\mid$

}

\newcommand{\resaltar}[1]
{
	\color{red} {\Huge #1} \normalcolor
}

\newcommand{\CasoDeUso}[3]
{
\textbf{#1}
	\begin{itemize}
		\item \textbf{Actor:}  #2 
		\item \textbf{Descripción:} #3 
	\end{itemize}
}

\newcommand{\escenario}[7]
{
	\begin{itemize} 
		\item \small{\textit{Familia: #1}}
		\item \textbf{Fuente:} #2 
		\item \textbf{Estímulo:}  #3 
		\item \textbf{Artefacto:} #4 
		\item \textbf{Entorno:} #5 
		\item \textbf{Respuesta:} #6 
		\item \textbf{Medida:} #7 
	\end{itemize}
	\bigskip
	\hrule	
	\bigskip
}

\newcommand{\riesgo}[7]
{
	\textbf{Riesgo #1}
	\begin{itemize} 
		\item \textbf{Descripción:} #2 
		\item \textbf{Probabilidad:}  #3 
		\item \textbf{Impacto:} #4 
		\item \textbf{Exposición:} #5 
		\item \textbf{Mitigación:} #6 
		\item \textbf{Plan de contingencia:} #7 
	\end{itemize}
	\bigskip
	\hrule	
	\bigskip
}


\newcommand{\itemtriangulo}
{
	\item[$\triangleright$]
}

\newcommand{\saltosinsangria}{ \newline \newline}

\newcommand{\filaparS}[7]
{
	\rowcolor[gray]{1}{#1} & {#2} & {#3} & {#4} & {#5} & {#6} & {#7}\\ 
}

\newcommand{\filaimparS}[7]
{
	\rowcolor[gray]{0.8}{#1} & {#2} & {#3} & {#4} & {#5} & {#6} & {#7}\\ 
}

\newcommand{\camposcolorS}[7]
{
	\rowcolor[cmyk]{1,1,0,0} \textbf{\color{white} {#1}} & \textbf{\color{white} {#2}} & \textbf{\color{white} {#3}} & \textbf{\color{white} {#4}} & \textbf{\color{white} {#5}} & \textbf{\color{white} {#6}} & \textbf{\color{white} {#7}}\\
}

\newcommand{\filapar}[6]
{
	\rowcolor[gray]{1}{#1} & {#2} & {#3} & {#4} & {#5} & {#6}\\ 
}

\newcommand{\filaimpar}[6]
{
	\rowcolor[gray]{0.8}{#1} & {#2} & {#3} & {#4} & {#5} & {#6}\\ 
}

\newcommand{\camposcolor}[6]
{
	\rowcolor[cmyk]{1,1,0,0} \textbf{\color{white} {#1}} & \textbf{\color{white} {#2}} & \textbf{\color{white} {#3}} & \textbf{\color{white} {#4}} & \textbf{\color{white} {#5}} & \textbf{\color{white} {#6}}\\
}

\newcommand{\imagen}[3]
{
	\begin{figure}[p!hbt]
	  \centering
	  \includegraphics[scale=#3]{../img/#1}
	  \caption{#2}
          \label{fig_#1}
	\end{figure}
} 
\newcommand{\imagenvertical}[3]
{
	\begin{figure}[p!hbt]
	  \centering
	  \includegraphics[angle=90,scale=#3]{../img/#1}
	  \caption{#2}
          \label{fig_#1}
	\end{figure}
}
